package com.alibaba.dubbo.demo.consumer;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import com.alibaba.dubbo.demo.DemoService;
import com.alibaba.dubbo.demo.Student;
import com.alibaba.dubbo.rpc.service.GenericService;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**Mock测试（不起作用）
 * @author zhangsulei
 *
 */
public class Consumer6 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"META-INF/spring/dubbo-demo-consumer.xml"});
        context.start();
        DemoService demoService = (DemoService) context.getBean("demoService6"); // get remote service proxy

        Student st = new Student();
    	st.setName("zsl");
    	st.setAge(10);
    	Student st2 = demoService.sayHello(st);
    }
}
